/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.bo.TrainSumBO;
import com.xy.biz.ts.domain.po.TrainSumPO;
import com.xy.biz.ts.domain.query.TrainSumQuery;

/**
 * 
 * 
 * @author zgy
 * @date 2021-7-29
 */
public interface TrainSumManager {
	
	/**
	 * 保存
	 *
	 * @param trainSumBO
	 */
	TrainSumPO saveTrainSum(TrainSumBO trainSumBO);
	
	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllTrainSum(Collection<TrainSumBO> collection);
	
	/**
	 * 更新
	 *
	 * @param trainSumBO
	 */
	int updateTrainSum(TrainSumBO trainSumBO);
	
	/**
	 * 删除
	 *
	 * @param trainSumId
	 */
	int deleteTrainSum(Long trainSumId);
	
	/**
	 * 查找一个
	 *
	 * @param trainSumId
	 * @return 
	 */
	TrainSumBO getTrainSum(Long trainSumId);
	
	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<TrainSumBO> listTrainSumById(Collection<Long> collection);
	
	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<TrainSumBO> listTrainSum(TrainSumQuery query);
	
	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countTrainSum(TrainSumQuery query);
	
}
